<template>
  <div>
    <ul>
      <li v-for="item in list" :key="item">
        {{ item }}
      </li>
    </ul>
    <button @click="fn">走一走</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: ['帅哥', '美女', '程序猿'],
    }
  },
  methods: {
    fn() {
      let a = this.list.shift(this.list[0])
      this.list.push(a)
    },
  },
}
</script>

<style></style>
